<template>
   <div class="page-box h100 display-flex czbj">
      <p class="title-label mb10" v-if="qxs">客户管理</p>
      <div class="mb10" v-else>
         <n-tabs type="line" animated @update:value="fdstytyt">
            <n-tab-pane name="1" tab="我的客户">
               <n-button type="primary" size="medium" @click="showModal=true">我要接单</n-button>

            </n-tab-pane>
            <n-tab-pane name="2" tab="共享客户"> </n-tab-pane>
         </n-tabs>
      </div>
      <hhgbha v-if="jhhertr == '1'" ref="hhgbharef"></hhgbha>
      <hhgbhb v-if="jhhertr == '2'"></hhgbhb>
      <n-modal v-model:show="showModal" preset="card" class="Stock-diagnosis">
         <template #header>
            <div>我要接单<span class="z9 fz12">（拿货日期超过60天的）</span></div>
         </template>
         <div>
            <hhgbha pup="1" @callBack="callBack"></hhgbha>
         </div>
         <template #action>
            <div class="tr">
               <n-button> 关闭 </n-button>
            </div>
         </template>
      </n-modal>
   </div>
</template>
<script lang='ts' setup>
import { ref } from "vue"
import hhgbha from "./hhgbha.vue"
import hhgbhb from "./hhgbhb.vue"
const jhhertr = ref("1")
const showModal = ref(false)
const hhgbharef = ref()
const qxs = ref(false)
if (localStorage.id == 41) {
   qxs.value = true
}
const fdstytyt = (e) => {
   jhhertr.value = e
}
const callBack = ()=>{
   showModal.value = false
   hhgbharef.value.initDataExpose()
}
</script>
<style scoped></style>